package com.flyco.modules.oms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flyco.modules.oms.entity.OmsJddjOrderDiscount;
import com.flyco.modules.oms.entity.OmsJddjOrderInvoice;
import com.flyco.modules.oms.entity.OmsJddjOrderProduct;
import com.flyco.poi.excel.annotation.Excel;
import com.flyco.poi.excel.annotation.ExcelCollection;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 京东到家订单表
 * @Author: flyco
 * @Date:   2021-08-24
 * @Version: V1.0
 */
@Data
@ApiModel(value="oms_jddj_orderPage对象", description="京东到家订单表")
public class OmsJddjOrderImportPage {

	/**当天门店订单序号*/
	@Excel(name = "订单小号", width = 15)
	private Long orderNum;
	/**京东到家订单号*/
  	@Excel(name = "订单编号", width = 15)
	private Long orderId;
	/**预计送达结束时间*/
  	@Excel(name = "预计送达结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date orderPreEndDeliveryTime;
	@Excel(name = "	订单总金额", width = 15)
	private BigDecimal orderTotalMoney;
	/**用户应付金额（单位为分）=商品销售价总金额orderTotalMoney -订单优惠总金额 orderDiscountMoney+实际订单运费orderFreightMoney +包装金额packagingMoney -用户积分抵扣金额platformPointsDeductionMoney*/
	@Excel(name = "用户应付金额", width = 15)
	private BigDecimal orderBuyerPayableMoney;
	/**门店应收金额*/
	@Excel(name = "门店应收金额", width = 15)
	private BigDecimal orderStoreReceivableMoney;
	/**订单级别优惠商品金额：(不含单品促销类优惠金额及运费相关优惠金额)，等于OrderDiscountlist表中，除优惠类型7，8，12，15，16，18，外的优惠金额discountPrice累加和*/
	@Excel(name = "优惠金额", width = 15)
	private BigDecimal orderDiscountMoney;
	/**妥投时间*/
	@Excel(name = "妥投时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date deliveryConfirmTime;
	/**到家配送门店编码*/
  	@Excel(name = "门店ID", width = 15)
	private String deliveryStationNo;
	/**配送门店名称*/
  	@Excel(name = "门店名称", width = 15)
	private String deliveryStationName;
	/**商家最晚拣货完成时间*/
	@Excel(name = "拣货完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date pickDeadline;

  	@Excel(name = "承运商", width = 15)
	private String deliveryCarrierName;
	/**承运单号，通常情况下和订单号一致*/
  	@Excel(name = "运单号", width = 15)
	private String deliveryBillNo;
	/**订单买家备注*/
	@Excel(name = "订单备注", width = 15)
	private String orderBuyerRemark;


	@ExcelCollection(name="订单明细")
	@ApiModelProperty(value = "京东到家订单明细")
	private List<OmsJddjOrderProduct> omsJddjOrderProductList;
	
}
